From: Florian Müllner Date: Tue, 11 Mar 2025 00:23:40 +0000 (+0100) Subject: screenshot: Close overview/calendar when activating notification X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~143^2^2~2 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=e6e9822d8ca1619776d513423f9bcbbf1849dbf2;p=gnome-shell.git screenshot: Close overview/calendar when activating notification While the notifications are transient, they still appear in the message list while the banner is shown, and can be activated there. The expected behavior in that case is that we close the calendar popup and/or leave the overview. Closes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/8246 Part-of: --- diff --git a/js/ui/screenshot.js b/js/ui/screenshot.js index e3bd5495f..49873c10a 100644 --- a/js/ui/screenshot.js +++ b/js/ui/screenshot.js @@ -2115,6 +2115,9 @@ export const ScreenshotUI = GObject.registerClass({ logError(err, 'Error opening screencast'); } }); + + Main.overview.hide(); + Main.panel.closeCalendar(); } Main.messageTray.add(source); @@ -2359,6 +2362,9 @@ function _storeScreenshot(bytes, pixbuf) { } catch (err) { logError(err, 'Error opening screenshot'); } + + Main.overview.hide(); + Main.panel.closeCalendar(); }); }